package com.turbo.cloud.ums.web.model.api;

import com.turbo.cloud.core.base.BaseModel;
import com.turbo.cloud.core.validated.SelectListValidated;
import com.turbo.cloud.core.validated.SelectMulWhereValidated;
import com.turbo.cloud.core.validated.SelectValidated;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单接口表
 * </p>
 *
 * @author zhangluning
 * @since 2022-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
public class UmsApiQO extends BaseModel {

    /**
     * 权限ID
     */
    @NotBlank(message = "权限ID不能为空", groups = {SelectMulWhereValidated.class})
    private String permissionId;

    /**
     * 菜单ID
     */
    @NotBlank(message = "菜单ID不能为空", groups = {SelectListValidated.class, SelectMulWhereValidated.class})
    private String menuId;

    /**
     * 接口名称
     */
    private String apiTitleByLike;

    /**
     * 接口地址
     */
    private String apiUrlByLike;
}
